const webpack = require('webpack')
const {merge}  = require('webpack-merge')
const commonConfig = require('./webpack.common')

const devConfig= {
    mode: "development",
    devtool: 'cheap-module-eval-source-map', //生产环境
    devServer: {
        'contentBase': './dist',
        'open': true,
        'port': 3000,
        'hot': true,
    },
    plugins: [
        new webpack.HotModuleReplacementPlugin()
    ]
};
module.exports = merge(devConfig, commonConfig)
